package com.it.entity;

import java.util.Date;

/**
 * @author 羡羡
 */
public class User {
    public int id;
    public String user;
    public String pass;
    public Date birthday;
    public String name;
    public String img;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public User() {
    }


    public User(String user, String pass, Date birthday, String name, String img) {
        this.user = user;
        this.pass = pass;
        this.birthday = birthday;
        this.name = name;
        this.img = img;
    }

    public User(int id, String user, String pass, Date birthday, String name, String img) {
        this.id = id;
        this.user = user;
        this.pass = pass;
        this.birthday = birthday;
        this.name = name;
        this.img = img;
    }

    @Override
    public String toString() {
        return "\nUser{" +
                "id=" + id +
                ", user='" + user + '\'' +
                ", pass='" + pass + '\'' +
                ", birthday=" + birthday +
                ", name='" + name + '\'' +
                ", img='" + img + '\'' +
                '}';
    }
}
